package com.springboot.others.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Customer {

    private Integer customerId;

    private Integer storeId;

    @Size(max = 45, message = "编码长度不能超过45")
    @Length(max = 45, message = "编码长度不能超过45")
    private String firstName;

    @Size(max = 45, message = "编码长度不能超过45")
    @Length(max = 45, message = "编码长度不能超过45")
    private String lastName;

    @Size(max = 50, message = "编码长度不能超过50")
    @Length(max = 50, message = "编码长度不能超过50")
    private String email;

    private Integer addressId;

    private Integer active;

    private Date createDate;

    private Date lastUpdate;

}